﻿<%@ page language="java" contentType="text/html; charset=utf-8"
    import="hkyg.util.*,hkyg.background.model.*,java.util.*,org.springframework.context.ApplicationContext,org.springframework.web.context.support.WebApplicationContextUtils,hkyg.background.service.BackgroundService"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www#w3#org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ShangHai HaoKaiYaoGe Medical Technology</title>
<link href="../css/e_style.css" rel="stylesheet" type="text/css"/>

<script type="text/javascript" src="../js/banner.js"> </script> 
<style type="text/css">

</style>
</head>
<body>
<div id="topNavWrapper">
        <div id="topNav" align="center">
        <div id="top" align="left">
        <div class="left"><font color="#242424" size="2">welcome to HaoKaiYaoGe Medical!</font></div>
        <div class="right">
            <table cellpadding="0" cellspacing="0" align="right">
            <tr>
            <td><a href="../index.jsp"><font color="#242424" size="2">chinese</font></a></td>
            <td><strong><font color="#141414" size="2">&nbsp;|&nbsp;</font></strong></td>
            <td><a onclick='window.external.addFavorite("http://www.xxxx.com","上海浩锴耀戈医药网")' href="#"><font color="#242424" size="2">favorite</font></a></td>
            </tr>
            </table>
        </div>
        </div>
        </div>
</div>
	
	
	<div id="s_banner" style="background-color:#f9f9f9" align="center">
			<div id="s_banner-n" >
				<div id="s_banner-n1" ></div>
				<div id="s_banner-n2" ></div>
				<div id="s_banner-menu3" >
				 <ul class="menu">
				
					<li><a href="e_index.jsp">Home page</a></li>
					<li><a href="e_profile.html">Company profile</a></li>
					<li><a href="e_index.jsp">Company Culture</a></li>
					<li><a href="#">News Feed</a></li>
					<li><a href="#">Company products</a></li>
					<li><a href="e_train.html">Staff training</a></li>
					<li><a href="#">Contact us</a></li>
				
				</ul>

					
				</div>	
		
			</div>
			
			<div id="s_banner-d" >
				<div class="slider" style="height:232px; overflow:hidden">
					  <ul class="num" id="homePushName">
						<li id="homeAd0" class="current">1</li>
						<li id="homeAd1">2</li>
						<li id="homeAd2">3</li>
						
					  </ul>
					  <ul class="bg" id="homePushBg">
						<li> </li>
						<li> </li>
						<li> </li>
						
					  </ul>
					  <ul class="pic" id="homePushShow">
						<li id="homePushShow1" style="height:240px; width:960px; overflow:hidden;">
						<a href="#"><img src="../images/banner1-e.png" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>
						</li>
						<li id="homePushShow2" style="height:240px; overflow:hidden;">
						<a href="#"><img src="../images/banner3-e.png" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>
						</li>
						<li id="homePushShow3" style="height:240px; overflow:hidden;">
						<a href="#"><img src="../images/banner5-e.png" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>
						</li>
					</ul>
				</div>	
		
			</div>
	</div>
	
	<div id="s_content" style="background-color:#f9f9f9" align="center">
		<div id="s_content-n" style="background-color:#f9f9f9" align="left">
				<div id="content-n1">
				<div id="content-n1-1" align="left">
					<span ><strong><font color="#777777" size="2">Company profile</font></strong></span>
					<hr size="1" color="#009b4c"/> 
					<p style=" padding-left:1px; padding-right:1px; font-size:14px; color:#666666; line-height:18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shanghai HaoKaiYaoGe Medical Technology Co., Ltd. (“Company”) focuses on Modern Medical Diagnosis and Biological Medicine Healthcare industry. Having caught the growth trend of Chinese Medical Diagnosis and Medicine market, the company has strategically operated over the key stages within the industry chain, including wholesale, distribution and retailing of the medicine....<a href="#" href="e_profile.html"><font color="#949494" size="2">[more]</font></a>
</p>
					
				</div>
				<div id="content-n1-2" align="left">
					<span><strong><font color="#777777" size="2">News Feed</font></strong></span>
					<a href="#"><font color="#949494" size="2">more>></font></a>
	   				<hr size="1" color="#009b4c"/>
					 <ul class="list">
					<%
					int news_id = 0;
					try {
						news_id = Integer.parseInt(request.getParameter("news"));
					}catch(Exception e) {
						
					}
					BackgroundService backService = (BackgroundService)SpringContextUtil.getBean("backgroundService"); 
					Map<String,Object> map = new HashMap<String,Object>();
					map.put("start", news_id);
					map.put("limit", 5);
					int newsCounts = backService.getNewsCount(map);
					int newsPages = newsCounts/10;
					int nowPage = news_id;
					List<WebContent> wcList = backService.getNewsList(map);
					WebContent webContent = wcList.get(0);
					for (int i = 0; i < wcList.size(); i++) {
				    %>
					<li><a href="./news.jsp?news=<%=wcList.get(i).getContent_id()%>" style="width:690px;"><%=wcList.get(i).getTitle()%><font color="#949494" style="margin-right:5px; float:right;"><%=wcList.get(i).getCreate_time()%></font></a></li>
					<%
					}
				    %>
					</ul>
					<table>
					<tr bgcolor='#CCCC99'>
							<td  colspan='8' align='left'>
								<a href="news_list.jsp?news=0">首页</a>&nbsp;
								<%
							if(news_id==0){
							 %>
								上一页<% }else{%>
								<a
									href="news_list.jsp?news=${news_id-1}">上一页</a>&nbsp;
								<%} %>
								<%=nowPage%>/<%=newsPages %>&nbsp;
								<%if(news_id >= newsCounts-11){ %>
								下一页<% }else{%>
								<a
									href="news_list.jsp?news=${news_id+1}">下一页</a>&nbsp;
								<%} %>
								<a
									href="news_list.jsp?news=${newsCounts*10-1}">尾页</a>
							</td>
						</tr>
					</table>
				</div>
				<div id="content-n1-3" align="left">
					<span ><strong><font color="#777777" size="2">Contact us</font></strong></span>
	   				<hr size="1" color="#009b4c"/> 
						 <div style="padding:20px;">
					<strong><font color="#009933" size="4">Telephone Number：</font></strong><br/><br/>
					<font color="#333333" size="3">Shanghai  021_65221872</font><br/><br/>
					<font color="#333333" size="3">Hangzhou  0571_85228095</font>
					</div>
				</div>
		</div>
	</div>
    
    <div id="footer" align="center">
		<div id="footer-n" align="center">
			<font color="#777777" size="-1">©Shanghai HaoKaiYaoGe Medical Technology Copyright.2013 All Rights Revers.</font>
		</div>
	</div>
	
	<script type="text/javascript">
	var listItem=document.getElementById("homePushShow");
	var tList=document.getElementById("homePushName").childNodes;
	var controlItem=[];
	for(var i=0;i<tList.length;i++){
		if(tList[i].nodeName.toLowerCase()=="li"){
			controlItem.push(tList[i]);
		}
	}
	var picCount=controlItem.length;
	var cid=0;
	var tid=Math.floor(Math.random()*picCount);
	window.cTop=0
	window.gTop=0;
	window.speed=0;
	window.controlAction="";
	window.timeCount=0;
	setInterval(function(){
		if(cid!=tid){
			gTop=tid*240;
			speed=(gTop-cTop)/10;
			cid=tid;
			for(var i=0;i<picCount;i++){
				controlItem[i].className=((i==cid)?"current":"");
			}
		}
		if(window.cTop!=window.gTop){
			window.cTop+= parseInt(speed);
			listItem.style.marginTop="-"+ parseInt(window.cTop)+"px";
		}
		document.getElementById("homePushBg").style.display="block";
		document.getElementById("homePushName").style.display="block";
	},20);
	for(var i=0;i<picCount;i++){
		controlItem[i].onmouseover=function(){
			var goId=parseInt(this.innerHTML)-1;
			clearTimeout(window.controlAction);
			window.controlAction=setTimeout(function(){
				tid=goId;
				timeCount=0;
			},300);
		}
		controlItem[i].onmouseout=function(){
			clearTimeout(window.controlAction);
		}
	}
	setInterval(function(){
		timeCount+=1
		if(timeCount>=5){
			window.controlAction=setTimeout(function(){
				tid=tid+1;
				if(tid>=picCount){tid=0;}
			},20);
			timeCount=0;
		}
	},500);
</script>
    
</body>

</html>
